Skip to content

fix(board): close the open task when the board button is pressed again - #370

Open
gnutix wants to merge 1 commit into
johannesjo:mainfrom
gnutix:fix/board-button-closes-side-panel
Open

gnutix wants to merge 1 commit into
johannesjo:mainfrom
gnutix:fix/board-button-closes-side-panel

Conversation

@gnutix

@gnutix gnutix commented Nov 13, 2026 •

Copy link
Copy Markdown

Summary

On the board, once a task is opened beside it (by clicking its card), the header's board button did nothing: the board was already the active view. Now pressing it again closes the side panel, as the panel's > close button and Escape do, and returns focus to the task's card. The board stays open.

A new-task draft in the side panel is left alone, the same as with the close button: only its own Cancel discards it, after asking if anything was typed. With a GitHub issues page over the board, the button still closes that page as before.

Screenshots

A task opened beside the board by clicking its card (the starting point for both):

Board with the 5-day forecast task open in the side panel

Then clicking the board button in the header (the third view icon, top left):

Before After
Before: the side panel stays open After: the side panel closes and the task's card is focused
Nothing happens: the task stays open. The side panel closes and focus returns to the task's card, as with the panel's > button.

Changes

  • WorkspaceControls.tsx: the board toggle closes the side panel (closeSidePanel) when the board is shown with a task peeked and no draft; every other click switches views as before.
  • WorkspaceControls.client.test.tsx: new tests that the button closes the peeked task while keeping the board, and leaves a draft alone.

Verification

  • npm run check: passes.
  • npm test: passes. One unrelated test (markdown-blocks.test.ts) timed out once in a full run on a 4-core-capped machine and passed when rerun alone.

🤖 Generated with Claude Code (Opus 5.5)

On the board, with a task open in the side panel, the header's board
button did nothing, since the board was already the active view. It now
closes the side panel, as its close button and Escape do, and returns
focus to the task's card. A draft in the side panel stays, left to its
own Cancel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant